package com.karl.vo;

import java.io.File;

import org.apache.struts2.ServletActionContext;

public class ProductInfo {

	private String title;
	private String proprice;
	private String proaddress;
	private File image;
	public File getImage() {
		return image;
	}
	public void setImage(File image) {
		this.image = image;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getProprice() {
		return proprice;
	}
	public void setProprice(String proprice) {
		this.proprice = proprice;
	}
	public String getProaddress() {
		return proaddress;
	}
	public void setProaddress(String proaddress) {
		this.proaddress = proaddress;
	}

	private String imageContentType;
	private String imageFileName;
	private String savaPath;
	
	public String getImageContentType() {
		return imageContentType;
	}

	public void setImageContentType(String imageContentType) {
		this.imageContentType = imageContentType;
	}

	public String getImageFileName() {
		return imageFileName;
	}

	public void setImageFileName(String imageFileName) {
		this.imageFileName = imageFileName;
	}

	public String getSavaPath() {
//		System.out.println("??" + this.getClass().getClassLoader().getResource(""));
//		System.out.println("!!" + ServletActionContext.getServletContext().getRealPath("/WEB-INF/" + savaPath));
//		return ServletActionContext.getServletContext().getRealPath("/WEB-INF/" + savaPath);
		return "/Users/karlkoo/Documents/j2eeWorkspace/NewFuture/WebContent/WEB-INF" + savaPath;
	}

	public void setSavaPath(String savaPath) {
		this.savaPath = savaPath;
	}
	
}
